const api = {};
const files = require.context('./modules',false,/\.js/);
files.keys().forEach(key=>{
  api[key.replace(/(\.\/|\.js)/g,'')] = files(key).default
})
console.log(api);
export default api
